package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.UserInfo;
import com.google.gson.reflect.TypeToken;

import android.app.Activity;

/**
* @author Tangwenhan
*2015年11月24日下午5:57:13
*/
public class GetUserInfoModel extends HttpRequest<UserInfo>{

	public GetUserInfoModel(Activity activity, RequestCallBack<UserInfo> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}
	public void doNet(String uid) {
		mPostValues.put("a", "index");
		mPostValues.put("m", "User");
		mPostValues.put("uid", uid);
		requestByPost();
	}

	@Override
	public String getURL() {
		return Config.getIP() + Config.getUserInfo;
	}

	@Override
	public Type getType() {
		return new TypeToken<UserInfo>() {}.getType();
	}
	
	@Override
	public Class<UserInfo> getClazz()
	{
		return UserInfo.class;
	}

}

